<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>数据类型</title>
</head>
<body>
    <button onclick="fnstr()">数据类型</button>
</body>
    <script>
        function fnstr(){
            var name = "李伟聪"
            var password = "123456"
            var userInfo = `我的名字是${name},密码是${password}`
            console.log("name = " + name + "，的数据类型是" + typeof(name))
            console.log(userInfo)


            var userName = new String("李伟聪")
            console.log(userName)

            var a = "a"
            var b = "b"
            console.log(a.charCodeAt())
            console.log(b.charCodeAt())
        }
    </script>
</html>